class File {
  String id;
  String fileId;
  String fileLibraryId;
  String type;
  String typeId;
  String time;
  String? fileName;
  bool isSTL;
  String path;
  String md5;
  String fileGroup;

  File(
      {required this.id,
      required this.fileId,
      required this.fileLibraryId,
      required this.type,
      required this.typeId,
      required this.time,
      this.fileName,
      required this.isSTL,
      required this.path,
      required this.md5,
      required this.fileGroup});

  factory File.fromJson(Map<String, dynamic> json) {
    return File(
      id: json['id'],
      fileId: json['fileId'],
      fileLibraryId: json['fileLibraryId'],
      type: json['type'],
      typeId: json['typeId'],
      time: json['time'],
      fileName: json['fileName'],
      isSTL: json['isSTL'],
      path: json['path'],
      md5: json['md5'],
      fileGroup: json['fileGroup'],
    );
  }
}
